package Capa_Presentacion;

import java.awt.*;
import javax.swing.*;

public class Panelgrande extends javax.swing.JPanel{

    public Panelgrande() {
        initComponents();
        this.setSize(1250,650);
    }

     public void paintComponent(Graphics g){
         Dimension tam = getSize();
         ImageIcon ImagenFondo= new ImageIcon(getClass().getResource("/imagenes/logogrande.jpg").getFile());
         g.drawImage(ImagenFondo.getImage(),0,0,1250,650,null);
         setOpaque(false);
         super.paintComponent(g);
     }
             
     private void initComponents() {

         javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
         this.setLayout(layout);
         layout.setHorizontalGroup(
             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
             .addGap(0, 400, Short.MAX_VALUE)
         );
         layout.setVerticalGroup(
             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
             .addGap(0, 300, Short.MAX_VALUE)
         );
     }
}
